package com.yonggle.springbootdemo.generate;

import javax.xml.bind.annotation.*;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Controller {
    @XmlAttribute
    private String path;
    @XmlAttribute
    private String name;
    @XmlElement(name = "request", type = Request.class)
    private Request[] requests;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Request[] getRequests() {
        return requests;
    }

    public void setRequests(Request[] requests) {
        this.requests = requests;
    }
}
